/**
 * Copyright (c) 2014 zhenrongbao.com, Inc. All Rights Reserved
 * @author: jiangshuguang
 * @Date  : 14-12-24
 * @Time  : 上午12:00
 * @brief :
 */
(function () {
    var Tip = require('wap_common:widget/ui/tip/tip.js').Tip,
        ShareTip = require('wap_common:widget/ui/sharetip/sharetip.js').ShareTip,
        Share = require('wap_common:widget/ui/share/share.js').Share,
        shareTip = new ShareTip(),
        sendFriendTip = new Tip(),
        share;

    $('.page-registershare .share-btn').click(function(){
        shareTip.showShare('分享推荐给好友');
    });

    share = new Share({
        lineLink:location.protocol+'//'+location.host+'/wap/registershare?sequence_id='+P.data('sequence_id'),
        appMessageTitle:'一人投资，两人收益！真融宝双蛋节，带你收益带你飞！',
        appMessageDescContent:'真融宝有14%的年化收益，非常靠谱，推荐给你哦～',
        timeLineTitle:'一人投资，两人收益！真融宝双蛋节，带你收益带你飞！',
        onSend:function(res){
            sendFriendTip.show('' +
                '<div>坐等分享好友收益</div>' +
                '');
        }
    });
})();